home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / c / lzw4c13.zip / LZW4C.H < prev    next >
Text File  |  1993-08-29  |  1KB  |  50 lines

  1. /* Prototypes for LZW4C */
  2.  
  3. #ifndef FILE
  4. #include <stdio.h>
  5. #endif
  6.  
  7. #ifdef __SMALL__
  8. #error SMALL model not supported
  9. #endif
  10.  
  11. #ifdef __MEDIUM__
  12. #error MEDIUM model not supported
  13. #endif
  14.  
  15. #ifdef __COMPACT__
  16. #ifdef __cplusplus
  17. extern "C" int InitLZW(void far *(near *)(unsigned int), int);
  18. extern "C" int TermLZW(void (near *)(void far *) );
  19. extern "C" int Compress(int (near *)(void), int (near *)(char));
  20. extern "C" int Expand(int (near *)(void), int (near *)(char));
  21. #else
  22. int InitLZW(void far *(near *)(unsigned int), int);
  23. int TermLZW(void (near *)(void far *) );
  24. int Compress(int (near *)(void), int (near *)(char));
  25. int Expand(int (near *)(void), int (near *)(char));
  26. #endif
  27. #endif
  28.  
  29. #ifdef __LARGE__
  30. #ifdef __cplusplus
  31. extern "C" int InitLZW(void far *(far *)(unsigned int), int);
  32. extern "C" int TermLZW(void (far *)(void far *) );
  33. extern "C" int Compress(int (far *)(void), int (far *)(char));
  34. extern "C" int Expand(int (far *)(void), int (far *)(char));
  35. #else
  36. int InitLZW(void far *(far *)(unsigned int), int);
  37. int TermLZW(void (far *)(void far *) );
  38. int Compress(int (far *)(void), int (far *)(char));
  39. int Expand(int (far *)(void), int (far *)(char));
  40. #endif
  41. #endif
  42.  
  43. /* error codes */
  44.  
  45. #define EXPANSION_ERROR  -1
  46. #define CANNOT_ALLOCATE  -2
  47. #define INTERNAL_ERROR   -3
  48. #define NOT_INITIALIZED  -4
  49. #define BAD_BITCODE      -5
  50.